package com.daxiasoftware.alipay.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class AlipayConfig {
	// 商户appid
	@Value("${alipay.appid}")
	private String APPID = "2016082600313056";
	// 私钥 pkcs8格式的
	@Value("${alipay.private-key}")
	private String RSA_PRIVATE_KEY = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCIoRfEfStBsj8JLzKch/JKjGAIk9Vm5SVJ9LEiF5sYY1WhT3ibyGzAgQ/QPp9KQnRLT/PC0XHOfUTp9ydMVj0FqI2SBNt2XQCQw///atX1bfZ2LsV1f6j5Nm9BbWj01pG7hQU0RfMuJIuNUCWW61AlgDVzA5YLAxP7qNTicvi3LhRgo4Rfe0D/AkplaQGqD/tJm0EVNFbrpWgVrLHdDaQ3OzFvJlNZo9OgBJNAx9FWWLN53PNlCLF7AdKMtfosiP/id+QWTk/+sCZQN8AKus0GyR5Ex2sN5cxCJ5A6QgAMw+75P51PcPMMvfw5b9WxR1uaLUMxyFzATHmxy6UhcRsJAgMBAAECggEAGj/Q4CgoGlwTbkFKGPapXxcvEBbO5hDaJCZFrcYZPws+lVo+Urej5SwmjJyrX8n6q8l1jJVOpxw8FDMusqTS3nZulIIoY8okZKuzUDAHYTq6IiSEPTnEjfSeVVSe2IMsxnkc8dkKim/s+75NKnyVDk9edXVX60+xFCVwmPz7ub1uQtbarFrl+in2G9MQPy0ZkDZtBnloQbiaaF41zT51m8F8fhUW6o1FHugbrtokI8MSbaaElX8oJQIMSXsyFu1qvHq8eOwWAMX7XUpHXiqkD67yaDe+sdnSUqn00YeGqCw2D3UiL1ARHxIpIeudWyiboar3eZRCDmYUVVPqT5uT8QKBgQD/K6471SFhBqf0gt6DvTu50PtYTBtYMl4DJ1UpYEliosVjJn6uXABJdMA2zkftHb/euhJDKAxJ96O104/JeScLSR5J5buNjdOv24bMRcb+UVYX5YyfgeJ8TUdaKuHi65OC5b/yVgh3Uoegf1+w8AqTS5aXQpT/Oi6cca4Sjv5KDQKBgQCJEscZWHxFFG6+RhACtVs+vYerM7Wy9tOfD41EYuYnEAk6W2jRlgsofZYqP5eEdZvltjI20LkxsOhISK7kESS47UAgl1HcgmM9miExFOCRmsYJ3aFpk0gCtJnKrU6qR8gs5B8Jh3ugkO7D5/+G10ctJeRgp37DhB8RvUYu0A6B7QKBgQDoipktQ804jAVSClXYfwLIE1CLpkghNz1/6D9vBqW6MxZphnJaWdOVHcXx7EmWKM9rnez4sK2KVxklohjehf90BH2K4MbseLza/de5nzl7GQq5mmNuFcMefpqw7HWRBBkZaGFl6suqWlbpiErfh9JLa85gKLh6ZD6IKf12QkQxnQKBgDhxPP6YywL++OLsoqca2mmpTXYXotgAfv9ePgNM3gxzs/kNrsmuiQWxQOZArTlj3D/omCCuLbPibqNlGm7bCE4Fk4RYCuNL5WV2U/iL6jTKkIV7d32rodlLWJB2cI/5YtnpTUZ1PVjOlSKiIzv45VwX4ERUdAQ6ITkCwSWBkpe5AoGBAJLgY9fUqxoB9mfRVpA3VvgMuvZ5lewnp/Jdjqdjn1Tij0F9UYdsXLvWtArOzvqocqRJI3mZ6ZbfhWHu6qJowqAkdOQUkdlVSWatcB11wRJyqFwryZh1fTySNBIP6ZKFnJfPvABn4680b5pIuBmy+Athx3mkmlumv1hjLN7fOPjj";
	// 服务器异步通知页面路径 需http://或者https://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	@Value("${alipay.notify-url}")
	private String notify_url = "http://商户网关地址/alipay.trade.wap.pay-JAVA-UTF-8/notify_url.jsp";
	// 页面跳转同步通知页面路径 需http://或者https://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问 商户可以自定义同步跳转地址
	@Value("${alipay.return-url}")
	private String return_url = "http://商户网关地址/alipay.trade.wap.pay-JAVA-UTF-8/return_url.jsp";
	// 请求网关地址
	@Value("${alipay.url}")
	private String URL = "https://openapi.alipay.com/gateway.do";
	// 编码
	private String CHARSET = "UTF-8";
	// 返回格式
	private String FORMAT = "json";
	// 支付宝公钥
	@Value("${alipay.public-key}")
	private String ALIPAY_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjrEVFMOSiNJXaRNKicQuQdsREraftDA9Tua3WNZwcpeXeh8Wrt+V9JilLqSa7N7sVqwpvv8zWChgXhX/A96hEg97Oxe6GKUmzaZRNh0cZZ88vpkn5tlgL4mH/dhSr3Ip00kvM4rHq9PwuT4k7z1DpZAf1eghK8Q5BgxL88d0X07m9X96Ijd0yMkXArzD7jg+noqfbztEKoH3kPMRJC2w4ByVdweWUT2PwrlATpZZtYLmtDvUKG/sOkNAIKEMg3Rut1oKWpjyYanzDgS7Cg3awr1KPTl9rHCazk15aNYowmYtVabKwbGVToCAGK+qQ1gT3ELhkGnf3+h53fukNqRH+wIDAQAB";
	// 日志记录目录
	@Value("${alipay.log-path:/tmp/log}")
	private String log_path = "/log";
	// RSA2
	private String SIGNTYPE = "RSA2";
	public String getAPPID() {
		return APPID;
	}
	public void setAPPID(String aPPID) {
		APPID = aPPID;
	}
	public String getRSA_PRIVATE_KEY() {
		return RSA_PRIVATE_KEY;
	}
	public void setRSA_PRIVATE_KEY(String rSA_PRIVATE_KEY) {
		RSA_PRIVATE_KEY = rSA_PRIVATE_KEY;
	}
	public String getNotify_url() {
		return notify_url;
	}
	public void setNotify_url(String notify_url) {
		this.notify_url = notify_url;
	}
	public String getReturn_url() {
		return return_url;
	}
	public void setReturn_url(String return_url) {
		this.return_url = return_url;
	}
	public String getURL() {
		return URL;
	}
	public void setURL(String uRL) {
		URL = uRL;
	}
	public String getCHARSET() {
		return CHARSET;
	}
	public void setCHARSET(String cHARSET) {
		CHARSET = cHARSET;
	}
	public String getFORMAT() {
		return FORMAT;
	}
	public void setFORMAT(String fORMAT) {
		FORMAT = fORMAT;
	}
	
	public String getALIPAY_PUBLIC_KEY() {
		return ALIPAY_PUBLIC_KEY;
	}
	public void setALIPAY_PUBLIC_KEY(String aLIPAY_PUBLIC_KEY) {
		ALIPAY_PUBLIC_KEY = aLIPAY_PUBLIC_KEY;
	}
	public String getLog_path() {
		return log_path;
	}
	public void setLog_path(String log_path) {
		this.log_path = log_path;
	}
	public String getSIGNTYPE() {
		return SIGNTYPE;
	}
	public void setSIGNTYPE(String sIGNTYPE) {
		SIGNTYPE = sIGNTYPE;
	}
	
}
